home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 445 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1003 b 

  1. Path: oxy.rust.net!usenet
  2. From: pgunn@mail.cbf.com (Paul Gunn)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Constructor Exceptions
  5. Date: Thu, 04 Jan 1996 13:40:51 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4cglh3$6ue@oxy.rust.net>
  8. References: <4bud9g$pv5@oxy.rust.net> <4cbhcl$kst@dawn.mmm.com> <4ce68n$8u4@sundog.tiac.net>
  9. NNTP-Posting-Host: pgunn.cbf.com
  10. X-Newsreader: Forte Agent .99c/32.126
  11.  
  12. page@tiac.net (Chris Page) wrote:
  13.  
  14.  
  15. >Sure, they'll clean up 'this', but the programmer is responsible for
  16. >any and all heap memory allocated within the body of constructor.
  17.  
  18. My impression was that they did not. I'll try to find the article I
  19. read -- perhaps I misunderstood the point.
  20.  
  21. >The solution to this problem is to use the "resource allocation is
  22. >class initialization" technique, which has been discussed in the news
  23. >group many time before.
  24.  
  25. Could you give a brief synopsis of this technique? I may be familiar
  26. with it, but not by name.
  27.  
  28. Thanks!
  29. Paul Gunn
  30.  
  31.  
  32.  
  33.  
  34.